import 'package:flutter/material.dart';
import 'package:flutter_animate/custom_router.dart';
import 'package:flutter_animate/pages/first_page.dart';

class SecondPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.pink,
      appBar: AppBar(
        title: Text(
          "Second Page",
          style: TextStyle(fontSize: 36.0),
        ),
        elevation: 0.0,
        backgroundColor: Colors.pink,
        automaticallyImplyLeading: false,
      ),
      body: Center(
        child: MaterialButton(
          child: Icon(Icons.navigate_before, color: Colors.white, size: 64.0),
          onPressed: () {
            Navigator.of(context).push(CustomRouter(FirstPage()));
          },
        ),
      ),
    );
  }
}
